package priv.yiyuan.example.design.visitor.element;

import priv.yiyuan.example.design.visitor.DocumentVisitor;

/**
 * 文本元素
 *
 * @author YiYuan
 * @data 2025/7/30
 * @apoNote
 */
public class TextElement implements DocumentElement {

    private String content;

    public TextElement(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    @Override
    public void accept(DocumentVisitor visitor) {
        visitor.visit(this);
    }

}
